body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 500px;
  max-height: 600px;
}

.container {
  padding: 15px;
}

.warning {
  background-color: #ffeeee;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
  border: 1px solid #ffcccc;
}

.warning-text {
  color: red;
  font-weight: bold;
}

.settings {
  margin-bottom: 15px;
}

.setting-group {
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

textarea {
  height: 80px;
  resize: vertical;
}

.controls {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.primary-btn {
  background-color: #4285f4;
  color: white;
  border: none;
}

.primary-btn:hover {
  background-color: #3367d6;
}

.record-btn {
  background-color: #34a853;
  color: white;
  border: none;
}

.record-btn:hover {
  background-color: #2a8a43;
}

.stop-btn {
  background-color: #ea4335;
  color: white;
  border: none;
}

.stop-btn:hover {
  background-color: #d33426;
}

.clear-btn {
  background-color: #9aa0a6;
  color: white;
  border: none;
}

.clear-btn:hover {
  background-color: #80868b;
}

.secondary-btn {
  background-color: #f1f1f1;
  color: #333;
}

.danger-btn {
  background-color: #ea4335;
  color: white;
}

.stop-btn:disabled {
  background-color: #ea4335 !important;
  opacity: 0.7;
  color: white;
  cursor: not-allowed;
}

button:disabled:not(.stop-btn) {
  background-color: #cccccc;
  cursor: not-allowed;
}

.results {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
}

.result-item {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.result-item span {
  flex-grow: 1;
  margin-left: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.delete-icon {
  min-width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background-color: #f0f0f0;
  color: #666;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 5px;
}

.delete-icon:hover {
  background-color: #ff4d4d;
  color: white;
}

.hidden {
  display: none;
}

#detail-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 1000;
  overflow-y: auto;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
}

.detail-header h3 {
  margin: 0;
  text-align: center;
  flex-grow: 1;
}

.detail-header button:first-child {
  margin-right: auto;
}

.detail-header button:last-child {
  margin-left: auto;
}

.detail-content {
  padding: 15px;
}

.detail-section {
  margin-bottom: 20px;
}

pre {
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 4px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* 添加录制结果计数样式 */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.results-count {
  color: #666;
  font-size: 14px;
}

/* 在现有样式的基础上添加按钮颜色样式 */

/* 开始录制按钮 - 绿色 */
#start-recording {
  background-color: #4CAF50;
  color: white;
  border: none;
}

#start-recording:hover {
  background-color: #45a049;
}

#start-recording:disabled {
  background-color: #a5d6a7;
  cursor: not-allowed;
}

/* 停止录制按钮 - 红色 */
#stop-recording {
  background-color: #f44336;
  color: white;
  border: none;
}

#stop-recording:hover {
  background-color: #e53935;
}

#stop-recording:disabled {
  background-color: #ef9a9a;
  cursor: not-allowed;
}

/* 清空结果按钮 - 灰色 */
#clear-results {
  background-color: #9e9e9e;
  color: white;
  border: none;
}

#clear-results:hover {
  background-color: #757575;
}

/* 导出数据按钮 - 蓝色 */
#export-data {
  background-color: #2196F3;
  color: white;
  border: none;
}

#export-data:hover {
  background-color: #1e88e5;
} 